/**
 * Created by xiongxin on 2017/12/1.
 */


function sendService(url, options, fn) {
  // var myDate = new Date();
  // var trandt = myDate.Format("yyyyMMdd");
  // var trantm = myDate.Format("hhmmss");
  //loadPop.show();


  $.ajax({
    //url: 'https://openapi.boc.cn/card/query_card_list',
    url: url,
    type: 'POST',
    contentType: "content-type-application/json; charset=utf-8",
    dataType: 'json',
    // data: JSON.stringify({
    //   'cardSeq':  3017101252536110
    // }),
    data:JSON.stringify( options ) || '',
    //timeout: 10000,
    success: function (data) {
      //loadPop.hide();
      //loadPop.show();
      if (fn) {
        fn(data);
      }
    },
    error: function (e) {
      //loadPop.hide();
      console.log('显示网络异常！')
    }
    //超时处理
  })
}


// export default {
//   //sendService
// };
